import redis

try:
    redis_client = redis.Redis(host="192.168.56.102", port=6379, db=0)
    redis_dict = redis_client.info()
    #print(redis_dict)
except Exception as e:
    print("Failed to connect redis, {}".format(e))


#print(redis_client.client_list())

print(redis_client.get("k1"))

redis_client.set("k2", "v2")